package com.wanji.gateway.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 设备指令类型枚举
 * 定义系统支持的所有指令类型
 */
@AllArgsConstructor
@Getter
public enum CommandType {
    // 数据读取类指令
    READ_SENSOR_DATA("READ_SENSOR_DATA", "读取传感器数据"),
    READ_DEVICE_STATUS("READ_DEVICE_STATUS", "读取设备状态"),
    READ_DEVICE_CONFIG("READ_DEVICE_CONFIG", "读取设备配置"),
    READ_DEVICE_PARAM("READ_DEVICE_PARAM", "读取设备参数"),

    // 设备控制类指令
    SET_DEVICE_PARAM("SET_DEVICE_PARAM", "设置设备参数"),
    START_DEVICE("START_DEVICE", "启动设备"),
    STOP_DEVICE("STOP_DEVICE", "停止设备"),
    REBOOT_DEVICE("REBOOT_DEVICE", "重启设备"),

    // 系统管理类指令
    EMERGENCY_STOP("EMERGENCY_STOP", "紧急停止"),
    CLEAR_ALERT("CLEAR_ALERT", "清除告警");

    private final String code;
    private final String description;
}
